package com.jcark.arch.net

import me.hgj.mvvm.network.BaseResponse

data class ApiResponse<T>(val status: Int, val statusDesc: String, val data: T? = null) :
    BaseResponse<T>() {
    override fun getResponseCode() = status

    override fun getResponseData() = data

    override fun getResponseMsg() = statusDesc

    override fun isSuccess() = status == NetConfigManager.INSTANCE.getSuccessCode()
}